import http from './http'

export const fetchVideoList = () => http.get('/video/list')
export const fetchPlayUrl = (id, userId) => http.get(`/video/play/${id}`, { params: { userId } })
export const buyVideo = (id, userId) => http.get(`/userPurchase/buy/${id}`, { params: { userId } })
